import request from '@/utils/request';
//保存全局时间
export function saveAppointmentTime(data) {
  return request({
    url: '/admin/appointment/room/saveAppointmentTime',
    method: 'post',
    data,
  });
}
//获取全部时间
export function appointmentTime(data) {
  return request({
    // admin/user/adminUser/adminUserList
    url: '/admin/appointment/room/appointmentTime',
    method: 'get',
    params: data,
  });
}


//保存扣分规则
export function saveConf(data) {
  return request({
    url: '/admin/credit/saveConf',
    method: 'post',
    data,
  });
}
//获取全部时间
export function getConf(data) {
  return request({
    // admin/user/adminUser/adminUserList
    url: '/admin/credit/getConf',
    method: 'get',
    params: data,
  });
}

//保存全局时间
export function saveAppointmentDisabled(data) {
  return request({
    url: '/admin/appointment/room/saveAppointmentDisabled',
    method: 'post',
    data,
  });
}


//获取全部时间
export function appointmentDisabled(data) {
  return request({
    // admin/user/adminUser/adminUserList
    url: '/admin/appointment/room/appointmentDisabled',
    method: 'get',
    params: data,
  });
}

export function saveVisitorDisabled(data) {
  return request({
    // admin/user/adminUser/adminUserList
    url: '/admin/appointment/room/saveVisitorDisabled',
    method: 'get',
    params: data,
  });
}
export function getVisitorDisabled(data) {
  return request({
    // admin/user/adminUser/adminUserList
    url: '/admin/appointment/room/getVisitorDisabled',
    method: 'get',
    params: data,
  });
}

